package com.zjq.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zjq.dao.impl.RoleDaoImpl;
import com.zjq.pojo.Role;

@Service("loginService")
public class LoginService {
	@Autowired
	private RoleDaoImpl roledao = null;
	public Integer login(String name){
		Role r = new Role();
		r.setName(name);
		r=roledao.findForObject(r);
		return r.getLevel();
	}
}
